<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>米行域名批量交易-个人中心</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<include file="./Public/public/public.html" />
</head>
<body>
<!--pc头部-->
<include file="./Public/public/top.html" />
<!--pc头部结束-->

<!--mobile头部-->
<include file="./Public/public/mobileTop.html" />
<!--mobile头部结束-->
<div class="layout-wrap">
    <!--已审核-->
    <div class="layout">
        <include file="./Public/public/centerLeft.html" />
        <div class="right" ms-controller="right" style="min-height: 882px;">
            <h3>转出记录</h3>
            <div class="split-dot mt10 mb10"></div>
            <div class="table-wrappper">
                <div class="table table-w200">
                    <div class="th">
                        <div class="td w15"><span class="ml10">域名</span></div>
                        <div class="td w15"><span class="ml10">申请时间</span></div>
                        <div class="td w10"><span class="ml10">注册商</span></div>
                        <div class="td w15"><span class="ml10">我的注册商ID</span></div>
                        <div class="td w10"><span class="ml10">状态</span></div>
                        <div class="td w20"><span class="ml10">管理员备注</span></div>
                        <div class="td w10"><span class="ml10">操作</span></div>
                        <div class="clr"></div>
                    </div>
                    <if condition="$count neq 0">
						<volist name="list" id="vo">
							<div class="tr domain" id="trdomainlog{$vo.id}">
			                     <div class="td w15"><span class="ml10">{$vo.domain}</span></div>
			                     <div class="td w15"><span class="ml10">{$vo.createdate}</span></div>
			                     <div class="td w10"><span class="ml10">{$vo.name}</span></div>
			                     <div class="td w15"><span class="ml10">{$vo.pushid}</span></div>
			                     <div class="td w10">
			                     	<span class="ml10">
			      						  <if condition="$vo.status eq 1">
			                 				待处理
					                 	  <elseif condition="$vo.status eq 2"/> 
									    		转出失败
							    	 	  <elseif condition="$vo.status eq 3"/> 
									    		转出成功
									     <elseif condition="$vo.status eq 4"/> 
									    		处理中
								   		  </if>           
			                     	</span>
		                     	</div>
		                     	<div class="td w20"><span class="ml15">{$vo.admin_remark}</span></div>
		                     	
		                  <div class="td w10"><span class="ml5">
		                  <if condition="$vo.status eq 1">
                        	 <a class="button-blue button-xs mt5 ml10" style="margin:-0px 0px -6px 5px" 
                    action="cancel_orderdd" data-id="{$vo.id}" data-registrar="aiming">取&nbsp;消</a>
                    	</if>
                      </span></div>
                      
			                     <div class="clr"></div>
			                </div>
						</volist>
					<!-- <tr><td class="textcenter pagebar" colspan="12">{$pagebar}</td></tr> -->
				<else/>
					<div class="empty" style="height:400px;"></div> 
				</if>
                 </div>
            </div>
            <div class="paginate-wrap">
                <div class="dataTables_paginate">
                                        <div class="clr"></div>
                </div>
            </div>


        </div>
    <div class="clr"></div>

    </div>

        <div class="clr"></div>
    </div>
<div popup="confirm" class="reveal-modal medium" topmeasure="50" topoffset="256" locked="false" animation="none" 
    animationspeed="500" closeonbackgroundclick="true" dismissmodalclass="close-reveal-modal" 
dismissjqobject="[action=&quot;cancel&quot;]" z-index="1001" switch="open" style="z-index: 1002; display: none; top: 650px;">
    <a class="close-reveal-modal" action="closeModal">×</a>
    <div class="confirm-inner">
            <img src="{$app_path}{$static_path}/img/icon_orange_question.png">
            <span action="msg"></span>
    </div>

    <div class="split-dot mb20 text-center"></div>
    <div class="form-row">
        <a action="confirm" class=" button button-orange w40 fl">知道了</a>
        <a action="cancel" class=" button button-gray w40 fr">取消</a>
        <div class="clr"></div>
    </div>
</div><div class="reveal-modal-bg" style="display: none;"></div>
<include file="./Public/public/footer.html" /> 
<script type="text/javascript">
var isCancelling = false;
$("a[action='cancel_orderdd']").click(function () {
	var partrid = 'trdomainlog'+$(this).attr('data-id');
    if (isCancelling) { showModal({msg:'操作正在进行，请稍候'}); return; }
    var _this = $(this);
    var _id = $(_this).attr('data-id');
    if (!_id) return;
    showConfirm({
        msg:"您确定要取消转出吗?",
        confirmed:function(){
            isCancelling = true;
            $.ajax({
                url:"{:U('Turnoutlog/cancel')}",
                type:"POST",
                data:{id: _id},
                success:function(resp){
                    isCancelling = false;
                    if (resp.status != 1) {
                        showModal({msg:resp.msg});
                    } else {
                    	$("#"+partrid).remove();
                    }
                }
            }).fail(function(){
                isCancelling = false;
            });
        }
    })
});
</script>
</body></html>